<template>
    <!-- 数据订阅 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/data-sub" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "订阅数据，dept/user", prop: "dataType", max: 64},
	{label: "订阅类型", prop: "type", max: 64},
	{label: "地址", prop: "url", max: 255},
	{label: "其它配置", prop: "config", max: 255},
	{label: "是否启用", prop: "enabled", },
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>